package com.glasses.abc.view;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Jean-Luc Burot
 * @since 2014-10-24
 */
@ManagedBean
@SessionScoped
public class IndexService {
    private boolean pageHomeEnabled;
    private boolean pageMembersEnabled;
    
    public boolean getPageHomeEnabled() {
        System.out.println("GET Home: " + pageHomeEnabled);
        return pageHomeEnabled;
    }
    
    public void putPageHomeEnabled() {
        System.out.println("SET Home: true");
        this.pageHomeEnabled = true;
        this.pageMembersEnabled = false;
    }
    
    public boolean getPageMembersEnabled() {
        System.out.println("GET Members: " + pageMembersEnabled);
        return pageMembersEnabled;
    }
    
    public void putPageMembersEnabled() {
        System.out.println("SET Members: true");
        this.pageHomeEnabled = false;
        this.pageMembersEnabled = true;
    }
}
